package com.cn.wanxi.service;

import com.cn.wanxi.dto.NewsModelDto;
import com.cn.wanxi.dto.ResultModel;
import com.cn.wanxi.model.NewsModel;
import com.cn.wanxi.model.PageModel;

import java.util.List;

public interface INewsService extends IService{
    NewsModelDto getNewsModel(PageModel pageModel);

    //    List<NewsModel> getNewsModelList();
    Integer getNewsCount();

    ResultModel addNews(NewsModel newsModel);
    NewsModel findById(NewsModel newsModel);

    //根据条件进行查询
    ResultModel findNewsBySome(NewsModel newsModel);
}
